package com.xjrsoft.module.demo.rabbitmq;

import com.xjrsoft.module.demo.entity.XjrBaseItem;
import org.springframework.stereotype.Component;

@Component
public class MyRabbitMqConsumer {

//    @RabbitHandler
//    @RabbitListener(queues =  "test")
    public void testConsumer(XjrBaseItem item){
        System.out.println("收到消息:"+item.toString());
    }
}
